package com.wwwarehouse.usercenter.fragment.business_relationship;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.wwwarehouse.common.activity.base.BaseFragment;
import com.wwwarehouse.usercenter.R;

/**
 * Created by xiaoke.ni on 2017/10/25.
 */

public class BRCFCDRemarkFragment extends BaseFragment{

    private View mView;
    private TextView mContentTv;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mView = View.inflate(getActivity(), R.layout.fragment_br_cfcd_remark, null);
        return mView;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

    }

    private void initEvent() {

    }

    private void initView() {
        mContentTv = (TextView) mView.findViewById(R.id.content_tv);
    }

    @Override
    public void setTitle() {
        if (peekFragment() instanceof BRCFCDRemarkFragment) {
            mActivity.setTitle(getString(R.string.user_br_remake));
        }
    }

    @Override
    public void requestDatas() {
        initView();
        initEvent();

        mContentTv.setText(getArguments().getString("remark"));
    }

}
